/*
package com.shiku.payment.controller;

import com.shiku.payment.api.IPaymentNoticeApiService;
import com.shiku.payment.constant.PayConstant;
import com.shiku.payment.strategy.impl.WxPayStrategy;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

@RestController
@Slf4j
public class WxPayController {


    @Autowired
    private IPaymentNoticeApiService paymentNoticeService;
    */
/**
     * 微信支付(统一下单接口)后台通知响应
     * @param request
     * @return
     * @throws ServletException
     * @throws IOException
     *//*

    @RequestMapping("/notify/wxPayNotifyRes")
    @ResponseBody
    public String wxPayNotifyRes(HttpServletRequest request) throws ServletException, IOException {
        log.info("====== 开始接收微信支付回调通知 ======");
        String notifyRes = doWxPayRes(request);
        log.info("响应给微信:{}", notifyRes);
        log.info("====== 完成接收微信支付回调通知 ======");
        return notifyRes;
    }

    public String doWxPayRes(HttpServletRequest request) throws ServletException, IOException {
        String logPrefix = "【微信支付回调通知】";
        String xmlResult = IOUtils.toString(request.getInputStream(), request.getCharacterEncoding());
        log.info("{}通知请求数据:reqStr={}", logPrefix, xmlResult);
        return paymentNoticeService.handlePayCallBackNotify(PayConstant.PAY_CHANNEL_WXPAY,xmlResult);
    }
}
*/
